
class BaseResponse(object):

    def __init__(self):
        self.data = None
        self.error = None
        self.status = 0  # 0 通过  1 不通过
        self.msg = '操作成功'  # 执行通过的提示语

    @property
    def dict(self):
        return self.__dict__
